﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NotificationDetails.aspx.cs" Inherits="Agents.Agent.NotificationDetails" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
<%@ Import Namespace="Agents.Data" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <title>מערכת סוכנים</title>
    <link href="../Styles/SiteMaster.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/Popup.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/Common.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="mainForm" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div id="page">
        <div class="header">התראות מבוססות מיקום</div>

        <br />
        <div id="mainBody">
            
            <asp:DataGrid runat="server" ID="dgNotifications" AutoGenerateColumns="False"
                AllowPaging="True" PageSize="12" PagerStyle-Mode="NumericPages" 
                BackColor="White" BorderStyle="None" 
                CellPadding="3" GridLines="Both" 
                onpageindexchanged="dgNotifications_PageIndexChanged" 
                OnDeleteCommand="dgNotifications_DeleteCommand" 
                CssClass="dataGrid" Font-Names="Verdana" BorderColor="#999999" BorderWidth="1px">
                <AlternatingItemStyle BackColor="#DCDCDC" />
                <Columns>
                    <asp:BoundColumn DataField="Id" Visible="false" />
                    <asp:BoundColumn DataField="LocationX" Visible="false" />
                    <asp:BoundColumn DataField="LocationY" Visible="false" />
                    <asp:BoundColumn DataField="Address" HeaderText="כתובת" ItemStyle-Width="25%" />
                    <asp:BoundColumn DataField="Content" HeaderText="תוכן ההתראה" ItemStyle-Width="75%" />
                    <asp:TemplateColumn HeaderText="מחיקה">
                        <ItemTemplate>
                            <asp:LinkButton ID="deleteBtn" Text="מחק" runat="server" CommandName="Delete"/>
                            <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server"
                                TargetControlID="deleteBtn" DisplayModalPopupID="modalPopUp" />
                            <asp:Panel ID="popup" runat="server" CssClass="popup">
                                <table>
                                    <tr><td colspan="2">האם אתה בטוח שברצונך למחוק את ההתראה?</td></tr>
                                    <tr>
                                        <td><asp:Button ID="ok" Text="כן" runat="server" CssClass="button" /></td>
                                        <td><asp:Button ID="cancel" Text="לא" runat="server" CssClass="button" /></td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <ajaxToolkit:ModalPopupExtender ID="modalPopUp" CancelControlID="cancel" PopupControlID="popup"
                                OkControlID="ok" runat="server" TargetControlID="deleteBtn" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <ItemStyle BackColor="White" ForeColor="Black" />
                <PagerStyle Mode="NumericPages" BackColor="#999999" ForeColor="Black" 
                HorizontalAlign="Center"></PagerStyle>
                <SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            </asp:DataGrid> 
            
            </div>

            <div class="alignCenter">    
                <br />           
                <hr />           
                <asp:Button ID="closeBtn" Text="סגור" runat="server" onclick="closeBtn_Click" CssClass="button"/>
            </div>
        </div>        
    </div>
    </form>
</body>
</html>




